<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script src="../node_modules/vue/dist/vue.js"></script>
    <div id="app">
        <ul>
            <!-- 遍历数组 -->
            <li v-for="user in users" :key="user.name">
                {{user.name}}
                <ol>
                    <!-- 遍历对象，键值，索引 -->
                    <li v-for="(value,key,index) in user" :key="index">{{key}} ==> {{value}} ==> {{index}}</li>
                </ol>
            </li>


        </ul>
    </div>

    <script>
        new Vue({
            el: '#app',
            data: {
                users: [{ name: '刘亦菲', gender: '女', age: 18 },
                { name: '古力娜扎', gender: '女', age: 24 },
                { name: '董卿', gender: '女', age: 24 },
                { name: '微雨', gender: '男', age: 22 }]
            }
        })
    </script>
</body>

</html>